package mapper;

import com.sqsf.javabean.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PermissionMapper {
    @Select("select p.* from permission p inner join role_permission rp on rp.pid=p.pid where rp.rid=#{rid}")
    List<Permission> selectByRid(int rid);
}
